package WizardInstall;
/*
SWT/JFace in Action
GUI Design with Eclipse 3.0
Matthew Scarpino, Stephen Holder, Stanford Ng, and Laurent Mihalkovic

ISBN: 1932394273

Publisher: Manning
*/


import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;


/**
 * Summary page of install server
 * @author Guy & Liel
 *
 */
class SummaryPage extends WizardPage {
	  public static final String PAGE_NAME = "Summary";

	  private Label textLabel;
	  /**
	   * Contractor of summary page
	   */
	  public SummaryPage() {
	    super(PAGE_NAME, "Summary Page", null);
	  }
	/**
	 * initially the buttons on page
	 */
	  public void createControl(Composite parent) {
	    Composite topLevel = new Composite(parent, SWT.NONE);
	    topLevel.setLayout(new FillLayout());

	    textLabel = new Label(topLevel, SWT.CENTER);
	    textLabel.setText("");

	    setControl(topLevel);
	    setPageComplete(true);
	  }

	  public void updateText(String newText) {
	    textLabel.setText(newText);
	  }
	}